import java.io.*;

/*
 *@Student 张策
 */
public class Text1 {
    public static void main(String[] args) {
        String str1="e:\\Text1.txt";
        String str2="e:\\Text2.txt";
        BufferedReader br=null;
        BufferedWriter bw=null;
        try {
            String line;
            br=new BufferedReader(new FileReader(str1));
            bw=new BufferedWriter(new FileWriter(str2));
            while ((line = br.readLine())!=null) {
                bw.write(line);
                bw.newLine();
            }
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                if (br!=null)
                br.close();
                if (bw!=null)
                    bw.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
